import request from '../../utils/request';

export const shopBannerPage = query => {
    return request({
        url: '/shopBanner/page',
        method: 'get',
        params: query
    });
};

export const shopBannerSave = data => {
    return request({
        url: '/shopBanner/save',
        method: 'post',
        data: data
    });
};

export const shopBannerUpdate = data => {
    return request({
        url: '/shopBanner/update',
        method: 'put',
        data: data
    });
};

export const shopBannerDelete = data => {
    return request({
        url: '/shopBanner/delete/' + data,
        method: 'delete'
    });
};